div {
    height: 100px;

    a {
        color: red;
        // 伪类需要在前面加上&
        &:hover {
            background-color: green;
        }
    }

}
.parent{
    background-color: blue;
    .children{
        background-color: pink;
    }
}